/*
 * author zby
 * 首页初始化数据
 */

(function (document, window, $, Utils) {
    'use strict';
    $(function () {
        var fns = {
            login: function () {
                Utils.getSimpleJson({
                    type: "POST",
                    url: "/core/user/login",
                    params: {
                        phone: $("#loginForm").find("input[name=username]").val(),
                        password: $("#loginForm").find("input[name=password]").val()
                    },
                    fn: function (data) {
                        if (data) {
                            window.location.href="index.html"
                        }
                    }
                })
            }
        };
        window.fns = fns;
    });


})(document, window, jQuery, Utils);